<?php
namespace app\common\validate;

use think\Validate;

class Department extends Validate
{
    protected $rule = [
        'name'  =>  'unique:department|require',
    ];

    protected $message = [
        'name'  =>  '部门名重复或者为空',
    ];
}
